
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Start {

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	@SuppressWarnings("resource")
	public static void main(String[] args) throws InterruptedException {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				"spring-context.xml");
		context.start();
		System.out.println("dubbo-rest服务启动成功!");
		// 禁止服务停止,线程睡眠可以降低CPU资源消耗1/4
		for (;;) {
			Thread.sleep(Long.MAX_VALUE);
		}

	}

}
